package io.terminus.spzx.pay.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 支付宝配置类
 * @Date 2025-01-04
 */
@Data
@ConfigurationProperties(prefix = "spzx.alipay")
public class AlipayProperties {

    private String alipayUrl;

    private String appPrivateKey;

    public String alipayPublicKey;

    private String appId;

    /**
     * 支付同步回调URL地址: 成功或失败页面
     */
    public String returnPaymentUrl;

    /**
     * 支付异步回调URL地址: 回调接口地址，处理业务系统逻辑
     */
    public String notifyPaymentUrl;

    public final static String format = "json";

    public final static String charset = "utf-8";

    public final static String sign_type = "RSA2";
}
